<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<style type="text/css">
			.hehe {
				width: 50%;
				height: 1000px;
				border: 1px solid #000000;
			}
		</style>
	</head>

	<body>
		<div class="hehe">
			
		</div>
		<input type="" name="" id="" value="" onblur="kickBack()" />
	</body>
	<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
	<script type="text/javascript">
		/*ios键盘回弹**********************************************/
		function kickBack() {
			alert("是去焦点了");
			setTimeout(() => {
				$(".hehe").css("border-color","red");
				alert(document.body.scrollTop + 1);
				window.scrollTo(0, 0);
				document.body.scrollTop >= 1 && window.scrollTo(0, document.body.scrollTop - 1);
			}, 10)
		}
		/*ios键盘回弹end**************************************/
		$(".hehe").click(function(){
			console.log(document.body.scrollTop);
			window.scrollTo(0,0);
		})
	</script>

</html>